package com.yunq.learn;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.yunq.learn.ipc.aidl.BookManagerActivity;
import com.yunq.learn.ipc.binderpool.BinderPoolActivity;
import com.yunq.learn.ipc.file.FileActivity;
import com.yunq.learn.ipc.messenger.MessengerActivity;
import com.yunq.learn.ipc.provider.ProviderActivity;
import com.yunq.learn.ipc.socket.TCPClientActivity;

public class IpcActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ipc);
    }

    public void ipcFile(View view){
        startActivity(new Intent(this, FileActivity.class));
    }

    public void ipcAidl(View view){
        startActivity(new Intent(this, BookManagerActivity.class));
    }

    public void ipcMessenger(View view){
        startActivity(new Intent(this, MessengerActivity.class));
    }

    public void ipcProvider(View view){
        startActivity(new Intent(this, ProviderActivity.class));
    }

    public void ipcSocket(View view){
        startActivity(new Intent(this, TCPClientActivity.class));
    }

    public void ipcBinderPool(View view){
        startActivity(new Intent(this, BinderPoolActivity.class));
    }
}
